package com.bupt.jack.model;

/**
 * District entity. @author MyEclipse Persistence Tools
 */

public class District implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -200793970103857135L;
	private Long id;
	private String name;
	private Integer level;
	private Long parentId;

	// Constructors

	/** default constructor */
	public District() {
	}

	/** minimal constructor */
	public District(Long id) {
		this.id = id;
	}

	/** full constructor */
	public District(Long id, String name, Integer level, Long parentId) {
		this.id = id;
		this.name = name;
		this.level = level;
		this.parentId = parentId;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

}